<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>Spring 登录</title>
	
  </head>
  
  <body>
    <br/>    
    <c:if test="${!empty error}">
    <font color="red">${error}</font>
    </c:if>
    <form action="<c:url value="/loginController.html"/>" method="post">
    用户名：<input type="text" name="username" /><br/>
    	密  码：<input type="password" name="password"/><br/>
    	<input type="submit" name="btn" value="登录"/>
    </form>
  </body>
</html>
